{block name=report-classes}
<div class="row">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="exportPageToCSV($(this),$('#print-approvedenrolments'),'approvedenrolments.csv');" class="btn btn-info report-green"><span>Export CSV</span></a>
  </div>
</div>
<div class="row form">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="printArea('print-approvedenrolments');" class="btn btn-info report-green"><span>Print</span></a>
  </div>
</div>
<div id="print-approvedenrolments">
{foreach $classterms as $term}
<div class="row term">
  <div class="col-sm-12">
    <h2 class="title">{$term.term_name} - {$term.term_region}<!-- {$ct.agegroup_name} | {$ct.class_start_time|date_format:"%H:%M %p"} - {$ct.class_end_time|date_format:"%H:%M %p"} | {$ct.location_suburb}, {$ct.location_state} --></h2>
  </div>{foreach $term.locations as $loc}
  <div class="location">
  {foreach $loc.classes as $ct}
  <div class="col-sm-12">
    <h3 class="title">{$ct.class_name} - {$ct.agegroup_name} <!-- {$ct.agegroup_name} | {$ct.class_start_time|date_format:"%H:%M %p"} - {$ct.class_end_time|date_format:"%H:%M %p"} | {$ct.location_suburb}, {$ct.location_state} --></h3>
    <span class="pull-right">{count($ct.students)}/{$ct.class_size}</span> 
  </div>
  <div class="col-sm-12">
    <table class="table table-striped">
      <thead>
        <th>Student Name</th>
        <th>Student DOB</th>
        <th>Parent Name</th>
        <th>Parent Surname</th>
        <!-- <th>Phone</th> -->
        <th>Email</th>
        <th>Enrolment Type</th>
        <th>Status</th>
      </thead>
      <tbody>
        {foreach $ct.students as $student}
          <tr>
            <td>{$student.student_name}</td>
            <td>{$student.student_dob}</td>
            <td>{$student.user_gname}</td>
            <td>{$student.user_surname}</td>
            <!-- <td>{$student.address_telephone}</td>-->
            <td>{$student.user_email}</td>
            <td>{$student.enrolment_type}</td>
            <td>{$student.status_name}</td>
          </tr>
        {/foreach}
      </tbody>
    </table>
  </div>
  {/foreach}
	</div>{/foreach}
</div>
{/foreach}
</div>
{/block} 


